package com.lagou.homework1;

/**
 * 编程实现测试类
 */
public class Test {
    public static void main(String[] args) {
        //声明该类型的引用指向该类型的对象
        Manage m = new Manage("一龙",123,15000,6000);
        Coder c = new Coder("方便",135,10000);
        m.work();
        c.work();
        System.out.println("-------------------------------------------------------");
        //使用set方法进行赋值
        Manage m1 = new Manage();
        m1.setName("一龙");
        m1.setId(123);
        m1.setSalary(15000);
        m1.setBonus(6000);
        m1.work();
        Coder c1 = new Coder();
        c1.setName("方便");
        c1.setId(135);
        c1.setSalary(10000);
        c1.work();
    }
}
